package com.guigu.userservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 业务员表
 * </p>
 *
 * @author zcy
 * @since 2025-09-28
 */
@Data
@TableName("businessman")
public class Businessman {
    @TableId(value = "businessman_id",type = IdType.AUTO)
    private Integer businessmanId;
    @TableField(value = "name")
    private String name;
    @TableField(value = "operator_id")
    private Integer operatorId;
    @TableField(value = "phone")
    private String phone;
    @TableField(value = "password")
    private String password;
    @TableField(value = "department")
    private String department;
    @TableField(value = "responsible_area")
    private String responsibleArea;
    @TableField(value = "status")
    private Integer status;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private String createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time")
    private String updateTime;
    @TableField(exist = false)
    private Exception exception;
}
